package com.pkx.cloud.fse7.expand.plan.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.pkx.cloud.fse7.expand.group.entity.DoorGroup;
import com.pkx.cloud.fse7.expand.group.entity.DoorGroupDetail;
import com.pkx.cloud.mybatis.comn.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;

/**
 * @author chenwg
 * @since 2021-04-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("door_plan")
@ApiModel(value = "DoorPlan对象", description = "")
public class DoorPlan extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    @ApiModelProperty(value = "计划名称")
    private String name;

    @ApiModelProperty(value = "计划类型")
    private String type;

    @ApiModelProperty(value = "开启时间")
    private String startTime;

    @ApiModelProperty(value = "关闭时间")
    private String endTime;

    @ApiModelProperty(value = "关闭corn")
    private String endCorn;

    @ApiModelProperty(value = "开始corn")
    private String startCorn;

    @ApiModelProperty(value = "星期")
    private String weeks;

    @ApiModelProperty(value = "任务状态")
    private String status;


    @ApiModelProperty(value = "备注")
    private String remark;

    @TableField(exist = false)
    @ApiModelProperty(value = "分组列表")
    private List<DoorPlanDetail> groupList;
    
    @ApiModelProperty(value = "创建用户名称")
    private String createUserName;
}
